package org.oc.qaq.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.oc.qaq.entity.Role;

import java.time.LocalDateTime;
import java.util.Set;

@Data
public class UserDTO {
    private String id;
    private String email;
    private String username;
    private String password;
    private Integer status;
    private String avatar;
    private String createdBy;
    private String updatedBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    private Set<Role> roles;
}
